<?php $this->beginContent('/layouts/main2'); ?>
<div class="container" style="min-height: 500px;">
	<div class="span2">
		<div id="leftbar" style="min-height: 500px;">		
			<?php
				$dataTree=array(
						array(
									'text'=>'>>添加服务', //must using 'text' key to show the text
									'link'=>array('service/index')),
						array(
									'text'=>'>>关注服务', //must using 'text' key to show the text
									'link'=>array('#')),						
						array(							
							'text'=>'个人空间', //must using 'text' key to show the text
							'isTitle'=>true,
							'titleCss'=>'',
							'isChildrenOpened'=>true,
							'children'=>array(//using 'children' key to indicate there are children
								array(
									'text'=>'信息中心',
									//'isChildrenOpened'=>true,
									'children'=>array(
										array('text'=>'me'),
										array('text'=>'big sis'),
										array('text'=>'little brother'),
									)
								),
								array(
									'text'=>'我的微博',
									//'isChildrenOpened'=>true,
									'children'=>array(
										array('text'=>'大学同学'),
										array('text'=>'公司同事'),
									)
								),
								array(
									'text'=>'我的服务',
								)
							)
						),
						array(							
							'text'=>'我的工作圈', //must using 'text' key to show the text
							'isTitle'=>true,
							'titleCss'=>'',
							'isChildrenOpened'=>true,
							'children'=>array(
								array(
									'text'=>'海天物管',
									//'isChildrenOpened'=>true,
									'children'=>array(
										array('text'=>'设施预订管理'),
										array('text'=>'小区活动'),
										array('text'=>'小区投诉管理'),
									)
								),
								array(
									'text'=>'Global Tech',
									//'isChildrenOpened'=>true,
									'children'=>array(
										array('text'=>'订单管理'),
										array('text'=>'请假管理'),
									)
								),								
							)
						)						
						);	
				
					/*$this->widget('application.components.widgets.btreemenu.BTreeMenu',array(
					        'data'=>$dataTree,
					//        'animated'=>'fast', //quick animation
					//        'collapsed'=>'false',//remember must giving quote for boolean value in here
					        'htmlOptions'=>array(
					                'class'=>'btreemenu',//there are some classes that ready to use
					        ),
					));*/
						
					$menuManager = Yii::app()->getController()->menuManager;
					$leftMenu = $menuManager->getBootStrapMenu('leftMenu');
					$this->widget('bootstrap.widgets.BootMenu', array(
    									'type'=>'list',
    									'items'=>$leftMenu['items']))
					?>

		</div>
		<!-- sidebar -->
	</div>
	<div class="span7">
		<div id="content">
		<?php echo $content; ?>
		</div>
		<!-- content -->
	</div>
	<div class="span2">
		<div id="sidebar">side bar</div>
		<!-- sidebar -->
	</div>
</div>
		<?php $this->endContent(); ?>